package com.dbl.oms.platform.persistence.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dbl.oms.common.model.SuperEntity;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author Ladd
 * @since 2017-12-15
 */
@TableName("sys_operation_log")
public class SysOperationLog extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 日志类型
     */
	@TableField("log_type")
	private String logType;
    /**
     * 日志名称
     */
	@TableField("log_name")
	private String logName;
    /**
     * 类名称
     */
	@TableField("class_name")
	private String className;
    /**
     * 方法名称
     */
	private String method;
    /**
     * 是否成功,1-是，0-否
     */
	private String succeed;
    /**
     * 备注
     */
	private String message;
	@TableField("create_by")
	private String createBy;
	@TableField("create_time")
	private Date createTime;


	public Integer getId() {
		return id;
	}

	public SysOperationLog setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getLogType() {
		return logType;
	}

	public SysOperationLog setLogType(String logType) {
		this.logType = logType;
		return this;
	}

	public String getLogName() {
		return logName;
	}

	public SysOperationLog setLogName(String logName) {
		this.logName = logName;
		return this;
	}

	public String getClassName() {
		return className;
	}

	public SysOperationLog setClassName(String className) {
		this.className = className;
		return this;
	}

	public String getMethod() {
		return method;
	}

	public SysOperationLog setMethod(String method) {
		this.method = method;
		return this;
	}

	public String getSucceed() {
		return succeed;
	}

	public SysOperationLog setSucceed(String succeed) {
		this.succeed = succeed;
		return this;
	}

	public String getMessage() {
		return message;
	}

	public SysOperationLog setMessage(String message) {
		this.message = message;
		return this;
	}

	public String getCreateBy() {
		return createBy;
	}

	public SysOperationLog setCreateBy(String createBy) {
		this.createBy = createBy;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public SysOperationLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public static final String ID = "id";

	public static final String LOG_TYPE = "log_type";

	public static final String LOG_NAME = "log_name";

	public static final String CLASS_NAME = "class_name";

	public static final String METHOD = "method";

	public static final String SUCCEED = "succeed";

	public static final String MESSAGE = "message";

	public static final String CREATE_BY = "create_by";

	public static final String CREATE_TIME = "create_time";

	@Override
	public String toString() {
		return "SysOperationLog{" +
			", id=" + id +
			", logType=" + logType +
			", logName=" + logName +
			", className=" + className +
			", method=" + method +
			", succeed=" + succeed +
			", message=" + message +
			", createBy=" + createBy +
			", createTime=" + createTime +
			"}";
	}
}
